/**
 * Created by zjianhao on 15-10-23.
 */
$(function() {
    $(".panel").css({"height":$(window).height()});
    $.scrollify({
        section:".panel",
        scrollbars: false,
        scrollSpeed: 1000,
        before:function(){

        }
    });


    $(".scroll").click(function(e) {
        e.preventDefault();
        $.scrollify("move",$(this).attr("href"));
    });
});

$(document).ready(function(){

    //播放背景音乐
    var audio = document.getElementById("bgm");
    audio.play();
    if (audio.paused){
    }
    console.log("play_music");

})